package com.blackhorse.service;

import com.blackhorse.domain.Account;

/**
 * 利用Spring事务控制的Service
 */
public interface AccountService {
    public Account findAccountById(int id);

    /**
     * 转账，包含事务控制
     * @param sourceName
     * @param targetName
     * @param money
     */
    public void transfer(String sourceName, String targetName, float money);
}
